/**
 * Project: eraclient
 * 
 * File Created at 2011-2-24
 * $Id$
 * 
 * Copyright 1999-2100 Alibaba.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Alibaba Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Alibaba.com.
 */
package com.ymkyve.eraclient;

import java.awt.Container;

import javax.swing.JFrame;
import javax.swing.JLabel;

/**
 * TODO Comment of Message
 * @author gaoliang
 *
 * @date 2011-2-24
 */
public class Message extends JFrame{
    
    private String userName;
    
    public Message (String userName){
        this.userName = userName;
        Container container = this.getContentPane();
        container.setLayout(null);
        JLabel mainLabel = new JLabel("<html><font color=red size=5 >message");
        mainLabel.setBounds(70, 10, 250, 30);
        container.add(mainLabel);
        
        
        JLabel name = new JLabel("<html><font color=black size=4>用户名:"+userName);
        name.setBounds(10, 50, 250, 20);
        container.add(name);
        this.setSize(300, 400);
        this.setLocation(getLocation());
        this.setVisible(true);
        
    }

}
